from main import make_app, set_token_check, register_service_module, \
    init_db, make_celery, get_token_exclude_url, add_request_record

app = make_app()
token_exclude_url = get_token_exclude_url()
set_token_check(app, token_exclude_url)
register_service_module(app)
init_db(app)
add_request_record(app)
make_celery(app, ['app.machine.celery_tasks'])
if __name__ == '__main__':
    app.run(host='0.0.0.0', debug=True)
